﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Demo.ServiceContracts
{
    [ServiceContract]
    public interface INotificationClient
    {
        [OperationContract(IsOneWay = true)]
        void ReciveNotification(string from, string message,  DataContracts.DCClient cl);
    }

    [ServiceContract(CallbackContract=typeof(INotificationClient))]
    public interface INotificationService
    {
        [OperationContract]
        void RegisterListerner();

        [OperationContract()]
        void SendNotification(string from, string message, DataContracts.DCClient cl);

    }
}
